home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / sendmail.8.8.4.tar.gz / sendmail.8.8.4.tar / sendmail-8.8.4 / contrib / mh.patch < prev    next >
Text File  |  1993-09-04  |  5KB  |  194 lines

  1. Message-Id: <199309031900.OAA19417@ignatz.acs.depaul.edu>
  2. To: bug-mh@ics.uci.edu
  3. cc: mh-users@ics.uci.edu, eric@cs.berkeley.edu
  4. Subject: MH-6.8.1/Sendmail 8.X (MH patch) updated
  5. Date: Fri, 03 Sep 1993 14:00:46 -0500
  6. From: Dave Nelson <dcn@ignatz.acs.depaul.edu>
  7.  
  8.  
  9.     This patch will fix the "X-auth..." warnings from the newer
  10. Sendmails (8.X) while continuing to work with the old sendmails.
  11.  
  12.     I think the following patch will make everyone happy.
  13.  
  14.     1)  Anybody with MH-6.8.1 can install this.  It doesn't matter
  15.         what version of sendmail you're running.  It doesn't matter
  16.         if you're not running sendmail (but it won't fix anything
  17.         for you).
  18.  
  19.     2)  No configuration file hacks. If the -client switch is
  20.         absent (the default), the new sendmails will get an EHLO 
  21.         using what LocalName() returns as the hostname.  On my systems, 
  22.         this returns the FQDN.  If the EHLO fails with a result between 
  23.         500 and 599  and the -client switch is not set, we give up on 
  24.         sending EHLO/HELO and just go deliver the mail.
  25.  
  26.     3)  No new configuration options.
  27.  
  28.     4)  Retains the undocumented -client switch.  One warning:  it
  29.         is possible using the -client switch to cause the old sendmails
  30.         to return "I refuse to talk to myself".  You could do this under
  31.         the old code as well.  This will happen if you claim to be the
  32.         same system as the sendmail you're sending to is running on.  
  33.         That's pointless, but possible.  If you do this, just like under
  34.         the old code, you will get an error.
  35.  
  36.     5)  If you're running a site with both old and new sendmails, you only
  37.         have to build MH once.  The code's the same; works with them
  38.         both.
  39.  
  40.     If you decide to install this, make sure that you look the patch
  41. over and that you agree with what it is doing.  It works for me, but I
  42. can't test it on every possible combination.  Make sure that it works
  43. before you really install it for your users, if any.  No promises.
  44.  
  45.     To install this, save this to a file in the mts/sendmail directory.
  46. Feed it to patch.  Patch will ignore the non-patch stuff.  You should have
  47. "mts sendmail/smtp" in your configuration file.  This works with old and
  48. new sendmails.  Using "mts sendmail"  will cause the new sendmails to
  49. print an "X-auth..." warning about who owns the process piping the mail 
  50. message.  I don't know of anyway of getting rid of these.
  51.  
  52.     mh-config (if necessary), make, make inst-all.
  53.  
  54.  
  55. I hope this helps people.
  56.     
  57. /dcn
  58.  
  59. Dave Nelson
  60. Academic Computer Services
  61. DePaul University, Chicago
  62.  
  63. *** smail.c    Fri Sep  3 11:58:05 1993
  64. --- smail.c    Fri Sep  3 11:57:27 1993
  65. ***************
  66. *** 239,261 ****
  67.               return RP_RPLY;
  68.           }
  69.   
  70. !         if (client && *client) {
  71. !         doingEHLO = 1;
  72. !         result = smtalk (SM_HELO, "EHLO %s", client);
  73. !         doingEHLO = 0;
  74.   
  75. !         if (500 <= result && result <= 599)
  76.               result = smtalk (SM_HELO, "HELO %s", client);
  77. !         switch (result) {
  78.               case 250:
  79. !                 break;
  80.   
  81.               default:
  82.               (void) sm_end (NOTOK);
  83.               return RP_RPLY;
  84.           }
  85.           }
  86.   
  87.   #ifndef    ZMAILER
  88.           if (onex)
  89. --- 239,276 ----
  90.               return RP_RPLY;
  91.           }
  92.   
  93. !         doingEHLO = 1;
  94. !         result = smtalk (SM_HELO, "EHLO %s", 
  95. !                  (client && *client) ? client : LocalName());
  96. !         doingEHLO = 0;
  97. !         switch (result)
  98. !         {
  99. !         case 250:
  100. !         break;
  101.   
  102. !         default:
  103. !         if (!(500 <= result && result <= 599))
  104. !         {
  105. !             (void) sm_end (NOTOK);
  106. !             return RP_RPLY;
  107. !         }
  108. !         
  109. !         if (client && *client)
  110. !         {
  111.               result = smtalk (SM_HELO, "HELO %s", client);
  112. !             switch (result)
  113. !             {
  114.               case 250:
  115. !             break;
  116.   
  117.               default:
  118.               (void) sm_end (NOTOK);
  119.               return RP_RPLY;
  120. +             }
  121.           }
  122.           }
  123. +         
  124.   
  125.   #ifndef    ZMAILER
  126.           if (onex)
  127. ***************
  128. *** 357,380 ****
  129.           return RP_RPLY;
  130.       }
  131.   
  132. !     if (client && *client) {
  133. !     doingEHLO = 1;
  134. !     result = smtalk (SM_HELO, "EHLO %s", client);
  135. !     doingEHLO = 0;
  136.   
  137. !     if (500 <= result && result <= 599)
  138.           result = smtalk (SM_HELO, "HELO %s", client);
  139. !     switch (result) {
  140. !         case 250: 
  141.           break;
  142.   
  143. !         default: 
  144.           (void) sm_end (NOTOK);
  145.           return RP_RPLY;
  146.       }
  147.       }
  148.   send_options: ;
  149.       if (watch && EHLOset ("XVRB"))
  150.       (void) smtalk (SM_HELO, "VERB on");
  151. --- 372,409 ----
  152.           return RP_RPLY;
  153.       }
  154.   
  155. !     doingEHLO = 1;
  156. !     result = smtalk (SM_HELO, "EHLO %s", 
  157. !              (client && *client) ? client : LocalName());
  158. !     doingEHLO = 0;
  159. !     switch (result)
  160. !     {
  161. !     case 250:
  162. !     break;
  163. !     default:
  164. !     if (!(500 <= result && result <= 599))
  165. !     {
  166. !         (void) sm_end (NOTOK);
  167. !         return RP_RPLY;
  168. !     }
  169.   
  170. !     if (client && *client)
  171. !     {
  172.           result = smtalk (SM_HELO, "HELO %s", client);
  173. !         switch (result)
  174. !         {
  175. !         case 250:
  176.           break;
  177.   
  178. !         default:
  179.           (void) sm_end (NOTOK);
  180.           return RP_RPLY;
  181. +         }
  182.       }
  183.       }
  184. !     
  185.   send_options: ;
  186.       if (watch && EHLOset ("XVRB"))
  187.       (void) smtalk (SM_HELO, "VERB on");
  188.